package hust.music.action;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import hust.music.action.base.ActionBase;

/**
 * LogoutAction
 * 
 * @author Txazo
 * @since 1.0
 */
@Controller
@Scope("session")
public class LogoutAction extends ActionBase {

	private static final long serialVersionUID = 1L;

	/**
	 * 退出
	 * 
	 * @return 逻辑视图
	 * @throws Exception
	 */
	public String logout() throws Exception {
		session.clear();

		return SUCCESS;
	}

}
